requirejs(["handlebars","text!adminInclude","text!pageLoader","text!overLay","text!searchBar","text!topBar"],
    function(handlebars,adminInclude,tmp_pageLoader,tmp_overLay,tmp_searchBar,tmp_topBar){
        /***********************************Load template files***********************************/
        //加载静态包含文件
        $("title").after(adminInclude);
        //加载模板文件
        $("body").after(tmp_pageLoader);
        //加载模板文件
        $("body").after(tmp_searchBar);
        //加载模板文件
        $("body").after(tmp_topBar);

        /***********************************HandleBars***********************************/

        //加载pageLoader
        var pageLoader_data = {"message" : "please wait a second"};
        var pageLoader = handlebars.compile($("#tmp-page-loader").html());
        $("body").append(pageLoader(pageLoader_data));

        //加载Overlay模块
        $("body").append(tmp_overLay);

        //加载pageLoader
        var searchBar_data = {"title" : "search","placeHolder-text" : "please input search content","close－btn-text" : "close"};
        var searchBar = handlebars.compile($("#tmp-search-bar").html());
        $("body").append(searchBar(searchBar_data));

        //加载topBar
        var topBar_data = {"brandName" : "Dpoplar","link" : "www.sogou.com"};
        var topBar = handlebars.compile($("#tmp-top-bar").html());
        $("body").append(topBar(topBar_data));
    }
);